package com.zn.service;

import com.zn.entity.*;
import com.zn.vo.OptionSymbol;
import com.zn.vo.Response;
import com.zn.web.dto.KLineDto;
import com.zn.web.vo.TradingVo;

import java.text.ParseException;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by yinji on 2018/7/14.
 */
public interface MdInfoService {

    public OptionTradingGoods selectBytradingGoodsCode(String tradingGoodsCode);

    public List<OptionTradingGoods> findtradingGoodsCodeAll();

    public List<OptionTradingContract> selectIsTrading();

    void saveTgAndInstrumentMonth(String targetCode,Set<String> monthSet);

    public Map<String, List<?>> getTargetList();

    public Map<String, List<?>> findTargetList (TradingVo record) throws ParseException;

    public OptionMarketDataField getTargetContract(TradingVo record) throws ParseException;

    public Object getSinaMinLine(TradingVo record);

    public List<OptionSymbol> getContractList();

    public String checkRedisKey(String key);

    public boolean checkTradingTime(String tradingTime, Response response);

    public Map<String,Object> getKLineList(KLineDto kLineDto) throws Exception;

    public List<MarketTradeDetail> getMarketTradeDetail(TradingVo tradingVo);

    public void sendMongodbTickDetail(String instrumentMonth,String nowDate,OptionMarketTickDataField optionMarketTickDataField);

    /**
     * 创建索引以及删除上一个交易日的数据
     */
    public void createIndexAndRemoveYesterdayColl();
}
